package com.slmxz.tms.module.codegen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.slmxz.tms.document.model.vo.RouteVO;
import com.slmxz.tms.module.codegen.model.bo.ColumnMetaData;
import com.slmxz.tms.module.codegen.model.bo.TableMetaData;
import com.slmxz.tms.module.codegen.model.vo.TablePageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface DatabaseMapper extends BaseMapper {

    /**
     * 获取线路分页数据
     * @param page 分页对象
     * @return
     */
    List<TablePageVO> selectPage(IPage<TablePageVO> page, @Param("tablePage")TablePageVO tablePage);

    List<ColumnMetaData> getTableColumns(String tableName);

    TableMetaData getTableMetadata(String tableName);
}
